package core;

import java.util.List;

import javax.ejb.Local;

import model.Category;
import model.Checkin;
import model.Item;
import model.Member;
import model.Photo;

@Local
public interface ManagerLocal {
	<T> T get(Class<T> _class, Integer id);
	
	Object persist(Object obj);
	
	Object merge(Object obj);

	<T> void remove(Class<T> _class, Integer id);
	
	List<Category> listCategory(Boolean leaf, Integer idCategory);

	List<Item> listItems(Member member, Integer idCategory);

	List<Photo> listPhotos(Integer idItem);

	List<Checkin> getCheckinsItems(Integer idItem, String memberCellphone,
			String memberEmail, String memberPassword);
}
